* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Comic Sans MS', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    background-image: url('/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    /* width: 100vw; */
    /* overflow: hidden; */
}

p {
    line-height: 1.6;
    margin-bottom: 0;
}

img {
    max-width: 100%;
    height: auto;
}

main > .container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

main {
    overflow: hidden;
}

.comic {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    border: 2px solid #F40925;
    box-shadow: 8px 10px 0px rgb(0 0 0 / 37%);
}

.hero-img {
    border: 1px solid #F40925;
}

.comic h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.comic-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.climax-title { 
    margin-top: -50px;
}

.slider {
    /* width: 80%; */
    margin: 50px auto;
    margin-top: 20px;
    /* Fix for width issues */
    width: 100% !important;
}

.card {
    height: 150px;
    min-width: 150px;
    overflow: hidden;
    background: white;
    border: 2px solid red;
    border-radius: 20px;
    text-align: center;
    line-height: 150px;
    font-size: 24px;
    transition: all 0.3s ease;
    transform: scale(0.7) translateY(40px);
    opacity: 0.4;
    /* Fix for width issues - use min-width instead of fixed width */
    margin: 0 auto;
}

.slick-center.card {
    transform: scale(1.2) translateY(0);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    opacity: 1;
}

/* Adjacent cards */
.card-adjacent {
    transform: scale(0.9) translateY(15px)!important;
    opacity: 0.8 !important;
}

/* Cards two positions away */
.card-far {
    transform: scale(0.8) translateY(25px) !important;
    opacity: 0.6 !important;
}

/* Cards three positions away */
.card-farthest {
    transform: scale(0.7) translateY(35px) !important;
    opacity: 0.4 !important;
}

/* Slick width fixes */
.slick-slider {
    width: 100% !important;
}

.slick-track {
    display: flex !important;
    align-items: center;
}

.slick-slide {
    overflow: hidden;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.slick-list {
    overflow: unset;
    /* Ensure proper width calculation */
    width: 100% !important;
}

.footer .item-left {
    height: 200px;
    /* width: 53%; */
    line-height: 80px;
    text-align: center;
    /* font-size: 24px; */
    font-weight: bold;
    display: flex;
    text-transform: uppercase;
    background-color: #FFCBD1;
    align-items: center;
    justify-content: center;
    color: #F40925;
    border: 2px solid #F40925;
    border-radius: 10px;
    box-shadow: 8px 10px 0px rgb(0 0 0 / 37%);
}

.footer .item-left p {
    font-weight: bold;
    text-transform: uppercase;
    color: #F40925;
    margin-bottom: 0;
}

.footer .img {
    margin-left: -20px;
}

.footer .img img {
    padding: 0;
    width: 108%;
}

/* Upload functionality styles */
.upload-img {
    position: relative;
    cursor: pointer;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.upload-img:hover .upload-overlay {
    opacity: 1;
}

.upload-text {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

/* Modal styles */
.modal-content {
    border-radius: 20px;
    border: 2px solid #F40925;
}

.modal-header {
    background-color: #FFCBD1;
    border-bottom: 2px solid #F40925;
    border-radius: 18px 18px 0 0;
}

.modal-title {
    color: #F40925;
    font-weight: bold;
}

.btn-primary {
    background-color: #F40925;
    border-color: #F40925;
}

.btn-primary:hover {
    background-color: #d10820;
    border-color: #d10820;
}

.image-preview-container {
    text-align: center;
    margin-bottom: 15px;
}